package com.wing.sell.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.sell.model.entity.FinishedOrder;
import com.wing.sell.model.response.FinishedOrderVo;
import com.wing.sell.model.response.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;


/**
 * 销售订单表-Dao
 *
 * @author
 */
@Mapper
public interface FinishedOrderDao extends BaseMapper<FinishedOrder> {
    /**
     * 查询成品订单
     * @param pg
     * @param params
     * @return
     */
    Page<FinishedOrderVo> pageList4app(@Param("page") Page<FinishedOrderVo> pg,@Param("params") Map params);

    /**
     * 查询订单详情
     * @param id
     * @return
     */
    FinishedOrderVo getDetailBy(@Param("id") Long id);
}
